import axios from './request'

// export function UseBasicInfo() {
//     return axios.get('/router/BasicInfo.json')
// }

// export function UseDataResource() {
//     return axios.get('/router/DataResource.json')
// }

// export function UseHelp() {
//     return axios.get('/router/Help.json')
// }


// export function UseMapCollection() {
//     return axios.get('/router/Help.json')
// }

// export function UseSystem() {
//     return axios.get('/router/System.json')
// }

// export function UseTaskPlann() {
//     return axios.get('/router/TaskPlann.json')
// }

export function useGetRouter(url) {
    return axios.get('/router/'+url)
    .then((res)=>{
        console.log(res);
        return Promise.resolve(res)
    })
}
